import request from '@/utils/request'

const api_name = '/edu/course';

export default {
    getNewestCourse(){
        return request({
            url: api_name+'/newest',
            method: 'get',
        })
    },

    getCourseInfoById(id) {
        return request({
            url: `${api_name}/getById/${id}`,
            method: 'get'
        })
    },

    getfrontInfoById(courseId) {
        return request({
            url: `${api_name}/front/${courseId}`,
            method: 'get'
        })
    }
}